package com.moli.iov.handle.worker.his;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Provider {
    protected static final Logger logger = LoggerFactory.getLogger(Provider.class);
    public static void main(String[] args) {
        start();
    }
    static  void start(){
        logger.info("★★★★★★iov-handle-his服务开始启动★★★★★★");
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("spring/application.xml");
        context.start();
        logger.info("★★★★★★iov-handle-his服务启动成功★★★★★★");
        synchronized (Provider.class){
            while (true)
                try{
                    Provider.class.wait();
                }catch (Throwable e) {
                    logger.error("启动类异常", e);
                }
        }
    }
}
